package com.fizz.redpacket.response;

import com.fizz.redpacket.response.Status;
/*    */ import java.util.Map;

public class Response {
    private String code;
    private String msg;
    private Map<String, Object> data;

    public Response(Status status, String message) {
        this.code = status.code;
        this.msg = message;
    }

    public Response(Status status) {
        this.code = status.code;
        this.msg = status.code;
   }

   public Response(Status status, Map<String, Object> data) {
        this.code = status.code;
        this.msg = status.msg;
        this.data = data;
    }

    public void setCode(String code) {
        this.code = code;
   }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public String getCode() {
     return this.code;
    }

    public String getMsg() {
        return this.msg;
    }


    public Map<String, Object> getData() {
        return this.data;
       }
}
